package com.ruoyi.mycustom.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 erp_rivet_material
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
public class ErpRivetMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private Long materialNo;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crtTime;

    /** 最新修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最新修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mftTime;

    /** 存放标准(1500颗/包) */
    @Excel(name = "存放标准(1500颗/包)")
    private String storageStandards;

    /** 数量（库存） */
    @Excel(name = "数量", readConverterExp = "库=存")
    private Long quantity;

    /** 存放地点 */
    @Excel(name = "存放地点")
    private String location;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMaterialNo(Long materialNo) 
    {
        this.materialNo = materialNo;
    }

    public Long getMaterialNo() 
    {
        return materialNo;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setCrtTime(Date crtTime) 
    {
        this.crtTime = crtTime;
    }

    public Date getCrtTime() 
    {
        return crtTime;
    }
    public void setMftTime(Date mftTime) 
    {
        this.mftTime = mftTime;
    }

    public Date getMftTime() 
    {
        return mftTime;
    }
    public void setStorageStandards(String storageStandards) 
    {
        this.storageStandards = storageStandards;
    }

    public String getStorageStandards() 
    {
        return storageStandards;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("materialNo", getMaterialNo())
            .append("model", getModel())
            .append("crtTime", getCrtTime())
            .append("mftTime", getMftTime())
            .append("storageStandards", getStorageStandards())
            .append("quantity", getQuantity())
            .append("location", getLocation())
            .toString();
    }
}
